package chapter15;

/**
 * Created by V5470-I5 on 2016/4/23.
 */
public class ReplaceDemo {
    public static void main(String[] args){
        String[] regexs={".*foo",".*?foo",".*+foo"};
        for(String regex :regexs){
            System.out.println("xfooxxxxxxfoo".replaceAll(regex,"Orz"));
        }
    }
}
